****************************************************************************
**		Authors: 	Or Tuttnauer & Liran Harsgor
**		Purpose: 	Produce Table A2 in Kedar, Harsgor & Tuttnauer (JOP)  
**		input:		KHT_countrylevel.dta
*****************************************************************************

log using "table a2.log", replace

set more off

use "KHT_countrylevel.dta", clear

/*PLEASE NOTE THAT BELOW EACH REG IT IS NOW RERUN WITH RELEVANT CONTROLS ONLY*/
*Model 1*
reg enps enpv lnmeddm vlmeddm upper if dpr==1, robust
outreg2 using table_a2.doc, replace ctitle(baseline) dec(3)

reg enps enpv lnmeddm vlmeddm upper if dpr==1, robust
outreg2 using table_a2.doc, replace ctitle(baseline) dec(3)

*Model 2*
reg enps enpv lnmeddm sr vlmeddm vsr upper if dpr==1, robust
outreg2 using table_a2.doc, append ctitle(with sr)  dec(3)

reg enps enpv lnmeddm vlmeddm sr vsr upper if dpr==1, robust
outreg2 using table_a2.doc, append ctitle(with sr)  dec(3)

*Model 3*
reg enps enpv lnmeddm tqleg vlmeddm vtqleg upper if dpr==1, robust
outreg2 using table_a2.doc, append ctitle(with % top quartile)  dec(3)

reg enps enpv lnmeddm vlmeddm tqleg vtqleg upper if dpr==1, robust
outreg2 using table_a2.doc, append ctitle(with % top quartile)  dec(3)

*Model 4*
reg enps enpv lnmeddm sddm vlmeddm vsddm upper if dpr==1, robust
outreg2 using table_a2.doc, append ctitle(with sd(d))  dec(3)

reg enps enpv lnmeddm vlmeddm sddm vsddm upper if dpr==1, robust
outreg2 using table_a2.doc, append ctitle(with sd(d))  dec(3)

*Model 5*
reg enps enpv lnmeddm skewdm vlmeddm vskewdm upper if dpr==1, robust
outreg2 using table_a2.doc, append ctitle(with skewness)  dec(3)

reg enps enpv lnmeddm vlmeddm skewdm vskewdm upper if dpr==1, robust
outreg2 using table_a2.doc, append ctitle(with skewness)  dec(3)

*Model 6*
reg enps enpv lnmeddm psgt12 vlmeddm vpsgt12 upper if dpr==1, robust
outreg2 using table_a2.doc, append ctitle(with %>12)  dec(3)

reg enps enpv lnmeddm vlmeddm psgt12 vpsgt12 upper if dpr==1, robust
outreg2 using table_a2.doc, append ctitle(with %>12)  dec(3)

log close
